#pragma once

#ifndef ANIMATION_VIEW_H_
#define ANIMATION_VIEW_H_

#include <qwidget.h>
#include <qtimer.h>
#include <QGraphicsScene>
//#include <QGraphicsView>
//#include "GUIBase.h"

//class GUIBase;

class AnimationView : public QGraphicsScene
{
	Q_OBJECT

private:

	QTimer* timer;	//To run the animation	
	int timerDelay;
	//virtual void timerEvent( QTimerEvent * );

public:
	AnimationView(QWidget *);
	void startAnimation();
	void stopAnimation();

	void setTimerDelay(int delay);

	bool isActive() {return this->timer->isActive();};

	public slots:
		void timerSlot();
};

#endif
